package rahcir;

import java.util.Date;
import java.util.Map;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Text;
import com.google.appengine.api.datastore.Link;
import com.google.appengine.api.users.User;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Eat {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private User user;

    @Persistent
    private Text comment;
    
    @Persistent
    private Map<String, Integer> rates;

    @Persistent
    private Assemble assemble;

    public Eat(User user, Text comment, Map<String, Integer> rates,
			Assemble assemble) {
		super();
		this.user = user;
		this.comment = comment;
		this.rates = rates;
		this.assemble = assemble;
	}

	public Long getId() {
        return id;
    }

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Text getComment() {
		return comment;
	}

	public void setComment(Text comment) {
		this.comment = comment;
	}

	public Map<String, Integer> getRates() {
		return rates;
	}

	public void setRates(Map<String, Integer> rates) {
		this.rates = rates;
	}

	public Assemble getAssemble() {
		return assemble;
	}

	public void setAssemble(Assemble assemble) {
		this.assemble = assemble;
	}


}
